package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.entity.Result;
import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.List;
import java.util.Set;

public interface PermissionDao {
    public Set<Permission> findByRoleId(Integer roleId);
    public List<Permission> findAll();
    public void add(Permission permission);
    public Page<Permission> findByCondition(String queryString);
    public Permission findById(Integer id);

    public void edit(Permission permission);


//    public void deleteById(Integer id);
//    public List<Permission> findAllPermission();

//    public void add(Permission permission);

    public Page<Permission> selectByCondition(String queryString);

    public List<Permission> findPermissionList(Integer id);
    public Integer findUserIdByUsername(String username);
}
